import { http } from '@/api/request'

export interface LoginParams {
	/** @description 手机号 */
	phone: string
}

// 登录
export const wxLogin = (params: LoginParams) => {
	return http.post('/wxLogin', {
		phone: params.phone
	})
}

// 获取用户信息
export const getUserInfo = () => {
	return http.get('/getInfo')
}

// 更新用户信息
export const updateUserInfo = (data) => {
	return http.put('/system/user/profile', data)
}

